/*
 * @Description: 
 * @Version: 1.0
 * @Author: tao
 * @Date: 2021-01-20 11:59:16
 * @LastEditors: tao
 * @LastEditTime: 2021-02-19 22:07:11
 */
import {
  request
} from './request'

export function review(params) {
  return request({
    url: `/teacher/patentCheck`,
    params
  })
}

export function getDataByPageAndSize(page = 1, size = 10) {
  return request({
    url: `/teacher/PatentList`,
    params: {
      page,
      size
    }
  })
}

export function searchById(params) {
  return request({
    url: `/teacher/patentFind`,
    params
  })
}

export function editData(data) {
  return request({
    url: `/teacher/patentEdit`,
    method: 'post',
    data
  })
}

export function deleteById(id) {
  return request({
    url: `/teacher/patentDel?id=${id}`,
  })
}

export function appendData(data) {
  return request({
    url: `/teacher/patentAdd`,
    method: 'post',
    data
  })
}